<%-- 
    Document   : login1
    Created on : Feb 19, 2012, 5:20:33 AM
    Author     : ALI FARHAN
--%>

<%@page import="com.sun.org.apache.xalan.internal.xsltc.runtime.Parameter"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
String role1,role2,role3,id1,id2,id3;
//alertt= request.getAttribute("role1");
role1 =(String)request.getParameter("role1");

role2 =(String)request.getParameter("role2");

role3 =(String)request.getParameter("role3");

id1 =(String)request.getParameter("id1");

id2 =(String)request.getParameter("id2");

id3 =(String)request.getParameter("id3");


out.print("role 1 is:"+role1+id1);
out.print("role 2 is:"+role2+id2);
out.print("role 3 is:"+role3+id3);

%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
       <title>Yellow Effects by CMG Technologies</title>
<link href="yellow-effectz.css" rel="stylesheet" type="text/css" />

<script type="text/javascript">
  function getLoginAccess(userId,userRole)
   {
       
//        alert("User Role is : "+userRole);
        if(userRole=="Admin")
        {
            document.location.href = "MainControler?action=setLoginOneRole&id="+userId;
           alert("user id is :" + userId);
            
        }
         else if(userRole=="Inspector")
        {
            document.location.href = "MainControler?action=setLoginOneRole&id="+userId;
alert("user id is :" + userId);
            
        }
        else if(userRole=="Moderator")
        {
            alert("user id is :" + userId);
            document.location.href = "MainControler?action=setLoginOneRole&id="+userId;

        }
   }
</script>
</head>

<body>
<table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="50%" height="120"><table border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="42" valign="bottom"><a href="index.jsp" class="logo">Pensieve</a></td>
          </tr>
          <tr>
    <td>
        <a href="index.jsp" class="tag">A SOftware Requirement Inspection Software</a></td>
          </tr>
        </table></td>
        <td valign="bottom" style="padding-bottom:8px;"><table width="60%" border="0" align="right" cellpadding="0" cellspacing="0">
         
        </table>

        </td>
      </tr>
    </table>
    </td>
   
  </tr>
</table>
<div id="loginContainer">    

    
    
<table cellpadding="5">

    <div id="getLogin" name="getLogin">

       <h1 style="font-size: 25px;color: white;">
          Choose any One Role To entered in the System
       </h1>
        
        <p id="role1Login"   style="color: whitesmoke;background-color: cadetblue;width: 120px;text-align: center;cursor: pointer;">
           <a href="MainControler?action=setLoginOneRole&userId=<%=id1%>"> <%=role1%></a>
        </p>
        <p id="role2Login"   style="color: whitesmoke;background-color: cadetblue;width: 120px;text-align: center;cursor: pointer;">
          <a href="MainControler?action=setLoginOneRole&userId=<%=id2%>">  <%=role2%></a>
        </p>
        <p id="role3Login"   style="color: whitesmoke;background-color: cadetblue;width: 120px;text-align: center;cursor: pointer;">
            <a href="MainControler?action=setLoginOneRole&userId=<%=id3%>">  <%=role3%></a>
        </p>
        
    </div>

</table>


</div>
    </body>
</html>
